﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Xyz.Web.Reservation.Models.MemberModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Member Edit 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Member Edit</h2>
    <% using (Html.BeginForm())
       {%>
    <fieldset>
    <table style="width:100%">
        <tr>
            <td colspan="3">
                <%= Html.ValidationSummary(false)%>
                <div id="SuccessDiv" class="success">
                    <%= Html.Encode(ViewData["SuccessMessage"]) %>
                </div>
                <br />
            </td>
         </tr>
         <tr>
            <td style="width: 150px;">
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.UserName) %>
                </div>
            </td>
            <td style="width: 205px;">
                <div class="display-field">
                    <%: Html.DisplayTextFor(model => model.UserName) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.UserName) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Password) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.PasswordFor(model => model.Password)%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.Password) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.ConfirmPassword) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%= Html.PasswordFor(model => model.ConfirmPassword, new { @class = "text-box" })%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.ConfirmPassword)%>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.FirstName) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.FirstName) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.FirstName) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.LastName) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.LastName) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.LastName) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Gender) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.DropDownListFor(model => model.Gender, (SelectList)Session["GenderList"], new { style = "width: 99%;" })%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.Gender) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.DateOfBirth) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.EditorFor(model => model.DateOfBirth)%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.DateOfBirth) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.PassportNo) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.PassportNo) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.PassportNo) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Address1) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.Address1) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.Address1) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Address2) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.Address2) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.Address2) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Address3) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.Address3) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.Address3) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.City) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.DropDownListFor(model => model.City, (SelectList)Session["CityList"], new { style = "width: 99%;" })%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.City) %>                    
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.PostalCode) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.PostalCode) %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.PostalCode) %>
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Country) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.DropDownListFor(model => model.Country, (SelectList)Session["CountryList"], new { style = "width: 99%;" })%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.Country) %>
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.PassportExpiryDate) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.EditorFor(model => model.PassportExpiryDate)%>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.PassportExpiryDate) %>
                 </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.MemberPoints) %>
                </div>
            </td>
            <td>
                <div class="display-field">
                    <%: Model.MemberPoints %>
                </div>
            </td>
            <td>
                 <div class="editor-field">
                    <%: Html.ValidationMessageFor(model => model.MemberPoints) %>
                 </div>
            </td>
        </tr>
    </table>
    </fieldset>
    <input type="submit" value="   Save   " class="yellow_button" />
    <br />
    <br />
    <% } %>
</asp:Content>

